
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar">机构拥有知识产权状况: （单位：件）</div>
<table class="t_css table01 " width="100%" border="0" cellpadding="0"
	id="orgInfo" cellspacing="1">
	<tr>
		
		<th colspan="4">专利申请总数</th>
		<th colspan="4">专利授权总数</th>
		<th rowspan="2">软件著作权</th>
		<th rowspan="2">产品设计图</th>
	</tr>
	<tr>
		<th>发明</th>
		<th>实用新型</th>
		<th>外观设计</th>
		<th>合计</th>
		<th>发明</th>
		<th>实用新型</th>
		<th>外观设计</th>
		<th>合计</th>
	</tr>
	<tbody id="tab">
		<tr>
			
			<td align="center"><input type="hidden" name="knowledges/knowledge[0]@sequence_no" value="1">
			<span name="knowledges/knowledge[0]/kr_request_invent"><x:out
						select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_request_invent" />
			</span></td>
			<td align="center"><span
				name="knowledges/knowledge[0]/kr_request_new"><x:out
						select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_request_new" />
			</span></td>
			<td align="center"><span
				name="knowledges/knowledge[0]/kr_request_outward"><x:out
						select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_request_outward" />
			</span></td>
			<td align="center"><span
				name="knowledges/knowledge[0]/kr_request"><x:out
						select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_request" />
			</span></td>
			<td align="center"><span
				name="knowledges/knowledge[0]/kr_auth_invent"><x:out
						select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_auth_invent" />
			</span></td>
			<td align="center"><span
				name="knowledges/knowledge[0]/kr_auth_new"><x:out
						select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_auth_new" />
			</span></td>
			<td align="center"><span
				name="knowledges/knowledge[0]/kr_auth_outward"><x:out
						select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_auth_outward" />
			</span></td>
			<td align="center"><span name="knowledges/knowledge[0]/kr_auth">
					<x:out
						select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_auth" />
			</span></td>
			<td align="center"><span name="knowledges/knowledge[0]/kr_soft">
					<x:out
						select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_soft" />
			</span></td>
			<td align="center"><span name="knowledges/knowledge[0]/kr_ic">
					<x:out
						select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_ic" />
			</span></td>
		</tr>
		<tr>
	<td align="right"><span class="color_red">*</span>企业核心竞争力及行业所处地位：<br/>（限500字）</td>
	<td colspan="9">
	<textarea  name="proposal/position" rows='7' cols='140' class="required textarea maxlength:500" label="企业核心竞争力及行业所处地位"><x:out select="$xmlData/data/proposal/position" /></textarea>
	<input type='hidden' name="proposal/position_hidden" id="proposal/position_hidden" value=""> 
	</td>
	</tr>
	<tr>
	<td align="right" nowrap><span class="color_red">*</span>目前贷款余额：</td>
	<td colspan="4">
	<input name="proposal/loan_balances" id="loan_balances" label="目前贷款余额"
			type="text" required class="input_css required"
			style="text-align: right"   onchange="repayClean(this.id,'repay','colorRed','colorRed1');"
			onfocus="InitInput.setNumber(this,7,4,2)"
			value="<x:out select="$xmlData/data/proposal/loan_balances" />" />万元
	</td>
	<td align="right" nowrap><span class="color_red" id="colorRed">*</span>到期偿还情况：</td>
	<td >
		   <c:set var="repay_value"><x:out select="$xmlData/data/proposal/repay_value" /></c:set> 
		     <input name="proposal/repay_value" id="repay_value" type="hidden" 
		            value="<x:out select="$xmlData/data/proposal/repay_value" />"
		            class="required " label="到期偿还情况" /> 
		     <input name="proposal/repay_name"  id="repay_name" type="hidden"
		            value="<x:out select="$xmlData/data/proposal/repay_name" />" />
		     <cpt:select id="repay" key="repay"  onChange="initControlValue('repay');changhuan();" value="${repay_value}">
		     </cpt:select>
	    </td>
	</tr>
	<tr>
	<td align="right" nowrap><span class="color_red" id="colorRed1">*</span>未偿还到期贷款原因：<br/>（限500字）</td>
	<td colspan="9">
	<textarea  name="proposal/reasons" id="reasons" rows='7' cols='140' class="required textarea maxlength:500" label="未偿还到期贷款原因"><x:out select="$xmlData/data/proposal/reasons" /></textarea>
	<input type='hidden' name="proposal/reasons_hidden" id="proposal/reasons_hidden" value=""> 
	</td>
	</tr>
	<tr>
	<td align="right" nowrap><span class="color_red">*</span>近两年有无违规记录：<br/>（限500字）</td>
	<td colspan="9">
	<textarea  name="proposal/record" rows='7' cols='140' class="required textarea maxlength:500" label="近两年有无违规记录"><x:out select="$xmlData/data/proposal/record" /></textarea>
	<input type='hidden' name="proposal/record_hidden" id="proposal/record_hidden" value=""> 
	</td>
	</tr>
	</tbody>
</table>
<br>

<div class="t_bar"><span class="color_red">*</span>单位人员情况（单位：人）</div>
<table class="t_css table01" cellpadding="0" cellspacing="0" width="100%" align="center">
	<tr>
		<td align="right" class="thclass">职工总数：</td>
		<td colspan="1" align="center" class="thclass"><span
			name="organizations/organization[0]/people_count_total" id="people_count_total"> <x:out
					select="$xmlData/data/organization_persons/people_count_total" />
		</span></td>
		<td colspan="8" class="thclass"></td>
	</tr>
	<tr>
		<td align="right">其中</td>
		<td align="right">博士及博士后：</td>
		<td align="center"><span
			name="organizations/organization[0]/degree_doctor"> <x:out
					select="$xmlData/data/organization_persons/degree_doctor" />
		</span></td>
		<td align="right">硕士：</td>
		<td align="center"><span
			name="organizations/organization[0]/degree_master"> <x:out
					select="$xmlData/data/organization_persons/degree_master" />
		</span></td>
		<td align="right">本科：</td>
		<td align="center"> <span
			name="organizations/organization[0]/degree_bachelor"> <x:out
					select="$xmlData/data/organization_persons/degree_bachelor" />
		</span>
		</td>
		<td align="right">其他：</td>
		<td align="center"> <span
			name="organizations/organization[0]/degree_other"> <x:out
					select="$xmlData/data/organization_persons/degree_other" />
		</span>
		</td>
	</tr>
 <tr>
 <td nowrap align="right">大专以上人员数：</td>
<td align="center"><span name="organizations/organization[0]/degree_total" id="degree_total"><x:out select="$xmlData/data/organizations/organization[@submit_org=1]/degree_total" /></span>
<input type="hidden" id='degree_college' value="<x:out select='$xmlData/data/organization_persons/degree_college' />">
<input type="hidden" id='degree_bachelor' value="<x:out select='$xmlData/data/organization_persons/degree_bachelor' />">
<input type="hidden" id='degree_master' value="<x:out select='$xmlData/data/organization_persons/degree_master' />">
<input type="hidden" id='degree_doctor' value="<x:out select='$xmlData/data/organization_persons/degree_doctor' />">
			<script type="text/javascript">
				$(function() {
					var degree_college = $("#degree_college").val();
					var degree_bachelor = $("#degree_bachelor").val();
					var degree_master = $("#degree_master").val();
					var degree_doctor = $("#degree_doctor").val();
					var count = parseInt(degree_college)+ parseInt(degree_bachelor)+ parseInt(degree_master) + parseInt(degree_doctor);
					$("#degree_total").text(count);
					var people_count_total=$("#people_count_total").text();
					var degree_total_percent=parseInt(count)*100/parseInt(people_count_total);
					degree_total_percent = formatNumber(degree_total_percent.toString(), 9, 2, 2);// 格式化
					$("#degree_total_percent").text(degree_total_percent+"%");
					var work_yanfa=$("#work_yanfa").text();
					var work_yanfa_percent=parseInt(work_yanfa)*100/parseInt(people_count_total);
					work_yanfa_percent = formatNumber(work_yanfa_percent.toString(), 9, 2, 2);// 格式化
					$("#work_yanfa_percent").text(work_yanfa_percent+"%");
					
				});
			</script>
</td>
<td nowrap align="right" colspan="2">大专以上人员数占总人数百分比：</td>
<td align="center">
<span name="organizations/organization[0]/degree_total_percent" id="degree_total_percent"><x:out select="$xmlData/data/organizations/organization[@submit_org=1]/degree_total_percent" /></span>
</td>
<td nowrap align="right">研发人员数：</td>
<td align="center">
<span name="organizations/organization[0]/work_yanfa" id="work_yanfa"><x:out select="$xmlData/data/organization_persons/work_yanfa" /></span>
</td>
<td nowrap align="right">研发人员数占总人数百分比：</td>
<td align="center">
<span name="organizations/organization[0]/work_yanfa_percent" id="work_yanfa_percent"><x:out select="$xmlData/data/organizations/organization[@submit_org=1]/work_yanfa_percent" /></span>
</td>
 </tr>	
</table>
<table class="t_css table01" cellpadding="0" cellspacing="0" width="100%"  align="center">
	
	<tr class="t_bar">
			<td align="center" width="20%" rowspan="2">单位负责人</td>
			<td class="TblHead" align="center" width="10%">姓名</td>
			<td class="TblHead" align="center" width="10%">传真</td>
			<td class="TblHead" align="center" width="10%">办公电话</td>
			<td class="TblHead" align="center" width="20%">手机</td>
			<td class="TblHead" align="center" width="30%">Email</td>
			
	</tr>
	<tr>
			<td align="center">
			<span name="proposal/responsible_cname"><x:out select="$xmlData/data/organization_persons/person[@type='fuzeren']/cname" /></span>
			</td>
			<td align="center">
			<input name="proposal/responsible_fax" maxlength="50" style="width:90%" label="单位负责人->传真" class="required"  value="<x:out select="$xmlData/data/proposal/responsible_fax" />"/>
			</td>
			<td align="center">
			<span name="proposal/responsible_tel"><x:out select="$xmlData/data/organization_persons/person[@type='fuzeren']/tel" /></span>
			</td>
			<td align="center">
			<span name="proposal/responsible_mobile"><x:out select="$xmlData/data/organization_persons/person[@type='fuzeren']/mobile" /></span>
			</td>
            <td align="center">
			<input name="proposal/responsible_email" style="width:90%" maxlength="50" label="单位负责人->Email" class="required email"  value="<x:out select="$xmlData/data/proposal/responsible_email" />"/>
			</td>
		</tr>
	
	<tr class="t_bar">
			<td class="TblHead" nowrap align="center" rowspan="4" width="20%">单位法人代表情况</td>
			<td class="TblHead" align="center" width="10%">姓名</td>
			<td class="TblHead" align="center" width="10%">出生年月</td>
			<td class="TblHead" align="center" width="10%">任现职时间</td>
		    <td class="TblHead" align="center" width="25%">证件类型</td>
			<td class="TblHead" align="center" width="25%">证件号码</td>
		    
		</tr>
		
		<tr>
			
			<td align="center">
			<span name="proposal/legal_cname"><x:out select="$xmlData/data/organization_persons/person[@type='faren']/cname" /></span>
			</td>
			<td align="center"><c:set var="legal_date"><x:out select="$xmlData/data/proposal/legal_date" /></c:set>
		    <cpt:date id="legal_date" size="9" name="proposal/legal_date" value="${legal_date}" className="required date" label="单位法人代表情况->出生年月"></cpt:date>
			</td>
			<td align="center"><c:set var="legal_present_date"><x:out select="$xmlData/data/proposal/legal_present_date" /></c:set>
		    <cpt:date id="legal_present_date" size="9" name="proposal/legal_present_date" value="${legal_present_date}" className="required date" label="单位法人代表情况->任现职时间"></cpt:date>
			</td>
			<td align="center" >
			<span name="proposal/legal_id_type_name"><x:out select="$xmlData/data/organization_persons/person[@type='faren']/id_type_name" /></span>
			</td>
			<td align="center" >
			<span name="proposal/legal_id_no"><x:out select="$xmlData/data/organization_persons/person[@type='faren']/id_no" /></span>
			</td>
			
		</tr>
		<tr class="t_bar">
			<td class="TblHead" align="center">最高学历</td>
			<td class="TblHead" align="center">专业</td>
			<td class="TblHead" align="center">电话</td>
			<td class="TblHead" align="center">手机</td>
			<td class="TblHead" align="center">电子邮件</td>
	</tr>
		<tr>
			<td align="center">
			<span name="proposal/legal_educate_background_name"><x:out select="$xmlData/data/organization_persons/person[@type='faren']/educate_background_name" /></span>
			</td>
			<td align="center">
			<input name="proposal/legal_major" maxlength="50" style="width:90%" label="单位法人代表情况->专业" class="required"  value="<x:out select="$xmlData/data/proposal/legal_major" />"/>
			</td>
			<td align="center">
			<span name="proposal/legal_tel"><x:out select="$xmlData/data/organization_persons/person[@type='faren']/tel" /></span>
			</td>
			<td align="center">
			<span name="proposal/legal_mobile"><x:out select="$xmlData/data/organization_persons/person[@type='faren']/mobile" /></span>
			</td>
            <td align="center">
			<input name="proposal/legal_email"  maxlength="50" style="width:90%" label="单位法人代表电子邮件" class="required email"  value="<x:out select="$xmlData/data/proposal/legal_email" />"/>
			</td>
		</tr>
	
		<tr class="t_bar">
			<td class="TblHead" align="center" rowspan="4" width="20%">单位财务负责人情况</td>
			<td class="TblHead" align="center" width="10%">姓名</td>
			<td class="TblHead" align="center" width="10%">出生年月</td>
			<td class="TblHead" align="center" width="10%">任现职时间</td>
			<td class="TblHead" align="center" width="25%" colspan='2'>身份证号码</td>
		</tr>
		
	
	

		<tr>
			<td align="center">
			<input name="proposal/caiwu_cname" maxlength="10" class="required" label="单位财务负责人情况->姓名" value="<x:out select="$xmlData/data/proposal/caiwu_cname" />"/>
			</td>
			<td align="center">
			<c:set var="caiwu_date"><x:out select="$xmlData/data/proposal/caiwu_date" /></c:set>
		    <cpt:date id="caiwu_date" size="9" name="proposal/caiwu_date" value="${caiwu_date}" className="required date" label="单位财务负责人情况->出生年月"></cpt:date>
			</td>
			<td align="center">
			<c:set var="present_date"><x:out select="$xmlData/data/proposal/present_date" /></c:set>
		    <cpt:date id="present_date"  size="9" name="proposal/present_date" value="${present_date}" className="required date" label="单位财务负责人情况->任现职时间"></cpt:date>
			</td>
			<td align="center" colspan='2'>
			<input name="proposal/caiwu_id_no" id="caiwu_id_no" maxlength="18" size='30' class="required " label="单位财务负责人情况->证件号码"  value="<x:out select="$xmlData/data/proposal/caiwu_id_no" />"/>
			</td>
		</tr>
	<tr class="t_bar">
			<td class="TblHead" align="center">最高学历</td>
			<td class="TblHead" align="center">专业</td>
			<td class="TblHead" align="center">电话</td>
			<td class="TblHead" align="center">手机</td>
			<td class="TblHead" align="center">电子邮件</td>
	</tr>
		<tr>	
			<td align="center">
			<c:set var="caiwu_educate_background_value"><x:out select="$xmlData/data/proposal/caiwu_educate_background_value" /></c:set>
		    <cpt:select id="caiwu_educate_background" key="educate" value="${caiwu_educate_background_value}" className="required" label="单位财务负责人情况->最高学历"></cpt:select>
		    <input type="hidden" name="proposal/caiwu_educate_background_value" value="${caiwu_educate_background_value}" /> 
		    <input type="hidden" name="proposal/caiwu_educate_background_name" value="<x:out select="$xmlData/data/proposal/caiwu_educate_background_name" />" />
		</td>
			<td align="center">
			<input name="proposal/caiwu_major" maxlength="50" class="required" label="单位财务负责人情况->专业" value="<x:out select="$xmlData/data/proposal/caiwu_major" />"/>
			</td>
			<td align="center">
			<input name="proposal/caiwu_tel" maxlength="50" class="required" label="单位财务负责人情况->电话" value="<x:out select="$xmlData/data/proposal/caiwu_tel" />"/>
			</td>
			<td align="center">
			<input name="proposal/caiwu_mobile" maxlength="11" class="required mobile" label="单位财务负责人情况->手机" value="<x:out select="$xmlData/data/proposal/caiwu_mobile" />"/>
			</td>
            <td align="center">
			<input name="proposal/caiwu_email" maxlength="50" style="width:90%" class="required email" label="单位财务负责人情况->电子邮件"   value="<x:out select="$xmlData/data/proposal/caiwu_email" />"/>
			</td>
		</tr>
		
	
</table>
<script>
$(document).ready(function() {
	setIdNoCheck("caiwu_id_type_value");
});
function setIdNoCheck(selectId) {
	var idTypeSelectId=$("#"+selectId).val();
	if (idTypeSelectId == 1) $("#caiwu_id_no").addClass("idCard");
	else $("#caiwu_id_no").removeClass("idCard");
}
$(document).ready (function() {
	repayClean('loan_balances','repay','colorRed','colorRed1');
	
});
function repayClean(obj,string1,string2,string3){
	var value=$("#"+obj).val();
	
	if(value==0){
		$("#"+string1+"_value").removeClass("required");
		$("#reasons").removeClass("required");
		$("#"+string1).attr("disabled",true);
		$("#"+string2).hide();
		$("#"+string3).hide();
		$("#"+string1).val("");
		$("#"+string1+"_value").val("");
		$("#"+string1+"_name").val("");
	}
	else
		{
		$("#"+string1+"_value").addClass("required");
		$("#reasons").addClass("required");
		$("#"+string1).attr("disabled",false);
		$("#"+string2).show();
		$("#"+string3).show();
		}
	
}
function changhuan(){
	var str = $("#repay_value").val();
	if(str==1 || str==2 || str==5){
		$("#colorRed1").hide();
		$("#reasons").removeClass("required");
	}else{
		$("#colorRed1").show();
		$("#reasons").addClass("required");
	}
}
	
</script>
